﻿<?xml version="1.0" encoding="UTF-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <CustomAction
          Id="CreateTasksAction"
          RegistrationId="{$ListId:Lists/Tasks;}"
          RegistrationType="List"
          Location="CommandUI.Ribbon"
          Title="Create Tasks">
    <CommandUIExtension>
      <CommandUIDefinitions>
        <CommandUIDefinition Location="Ribbon.List.Share.Controls._children">
          <Button
              Id="Ribbon.List.Settings.CreateTasks"
              Alt="Create Tasks from Feed"
              Sequence="25"
              Command="Invoke_CreateTasks"
              LabelText="Create Tasks from Feed"
              TemplateAlias="o1"
              Image32by32="_layouts/15/images/icon_tasklist.gif"
              Image16by16="_layouts/15/images/icon_tasklist.gif"/>
        </CommandUIDefinition>
      </CommandUIDefinitions>
      <CommandUIHandlers>
        <CommandUIHandler
            Command="Invoke_CreateTasks"
            CommandAction="~remoteAppUrl/Pages/CreateTasks.aspx?{StandardTokens}&amp;list={ListId}"/>
      </CommandUIHandlers>
    </CommandUIExtension>
  </CustomAction>
</Elements>